package com.cloud.service;

import com.cloud.common.domain.Result;
import com.cloud.entity.SysNotice;
import com.cloud.utils.ServiceConstants;
import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * Feign服务调用
 * 消息服务
 */
@Component
@FeignClient(value = ServiceConstants.TlxxModulesMessage)
public interface FeignMessageService {

    /**
     * 添加通知消息
     */
    @LoadBalanced
    @PostMapping(value = "/system/notice/inAuth/saveInNotice")
    public Result<Integer> saveInNotice(@RequestBody SysNotice notice);

}
